<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Invitation extends Model
{
    protected $fillable = [
        'invited_user_id', 'invite_user_id'
    ];

    public function user()
    {
        return $this->belongsTo('App\User','invited_user_id', 'id');
    }

    public function invite()
    {
        return $this->belongsTo('App\User','invite_user_id', 'id');
    }
}
